package com.wn.mapper;

import com.wn.bean.Student;

import java.util.List;

/**
 * @author yellow Docter
 * @date 2022 -06-30
 * @desc
 */
public interface StuMapper {

    /**
     * 查询所有
     * @return
     */
    List<Student> findStus();

    /**
     * 添加操作
     * @param student
     * @return
     */
    int insertStu(Student student);


    /**
     * 通过id删除 操作
     * @param id
     * @return
     */
    int delStu(int id);

    Student findStuById(int id);

    int update(Student student);
}
